import request from '@/utils/request'

export function getAreaListAPI(params) {
  return request({
    url: '/parking/area/list',
    params
  })
}
export function delAreaAPI(id) {
  return request({
    url: '/parking/area/' + id,
    method: 'delete'
  })
}
export function addAreaAPI(data) {
  return request({
    url: '/parking/area',
    method: 'post',
    data
  })
}
export function updateAreaAPI(data) {
  return request({
    url: '/parking/area',
    method: 'put',
    data
  })
}
